package org.androidannotations.gradle;

import android.app.Application;
import android.app.NotificationManager;

import org.androidannotations.annotations.Background;
import org.androidannotations.annotations.EApplication;
import org.androidannotations.annotations.SystemService;

/**
 * Created by John on 2015/5/6.
 */
@EApplication
public class AppContext extends Application {

    public void onCreate() {
        super.onCreate();
        initSomeStuff();
    }

    @SystemService
    NotificationManager notificationManager;

    @Background
    void initSomeStuff() {
        // init some stuff in background
    }
}
